import request from '@/utils/request'

//查询总差错率和平均值
export function queryAllRate(query) {
    return request({
        url: '/quality/analysis/all/rate',
        method: 'post',
        params: query
    })
}

//根据车型查询差错率和平均值

export function queryRateByType(query) {
    return request({
        url: '/quality/analysis/type/rate',
        method: 'post',
        params: query
    })
}

//根据组别查询差错率
export function queryRateByGroupsQy(query) {
    return request({
        url: '/quality/analysis/groups/rate/0',
        method: 'post',
        params: query
    })
}

export function queryRateByGroupsZx(query) {
    return request({
        url: '/quality/analysis/groups/rate/1',
        method: 'post',
        params: query
    })
}

export function queryRateByGroupsZy(query) {
    return request({
        url: '/quality/analysis/groups/rate/2',
        method: 'post',
        params: query
    })
}

//点击组别显示详情
export function queryGroupsErrorDetail(query) {
    return request({
        url: '/quality/analysis/group/error/list',
        method: 'post',
        params: query
    })
}

